
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol XMTabBarViewDelegate <NSObject>

@property (nonatomic, copy) void (^switchTabBar)(NSInteger index);

@property (nonatomic, copy) void (^repeatSwitchTabBar)(NSInteger index);

- (void)swithItemViewIndex:(NSInteger)index;

- (void)swithItemViewIndexNoBlock:(NSInteger)index;

- (void)setBadgeNum:(NSUInteger)badgeNum;

@end

@interface XMBaseTabBarViewController : UITabBarController

@property (nonatomic, strong) UIView<XMTabBarViewDelegate> *tabBarView;

- (void)switchTabBarIndex:(NSInteger)index;

@end

NS_ASSUME_NONNULL_END
